// 文本相关类型定义
export interface TextItem {
    id: number;
    title: string;
    content: string;
    createTime: string;
    updateTime: string;
}

// 相似度计算配置接口
export interface SimilarityCalculatorConfig {
    algorithmName?: string;
    caseSensitive?: boolean;
    ignoreWhitespace?: boolean;
    normalizeText?: boolean;
    additionalParams?: Record<string, any>;
}

// 相似度计算请求DTO
export interface SimilarityRequestDTO {
    textId1: number;
    textId2: number;
    similarityCalculatorConfig?: SimilarityCalculatorConfig;
}

// 相似度计算响应DTO
export interface SimilarityResponseDTO {
    resultId: number;
    textId1: number;
    textId2: number;
    score: number;
    algorithmId: number;
    comparisonType: number;
    similarSegments: string;
    differentSegments: string;
    analysisDetails: Record<string, any>;
    chartData: Record<string, any>;
    reportPath: string;
    reportStatus: number;
    createdAt: string;
}

// API响应基础接口
export interface BaseResponse<T> {
    code: number;
    message: string;
    data: T;
}
